package br.caixa2.entities;

import com.br.generateswingview.annotations.Alias;

public class CurrentAccount extends AccountImpl {
	@Alias( "Limite" )
	private final double limit;

	public CurrentAccount( Client client, int number, double limit ) {
		super( client, number );
		this.limit = limit;
	}

	public double getLimit() {
		return limit;
	}

	@Override
	public boolean valitacaoDeSaque( double value ) {
		return limit + getBalance() - value >= 0;
	}

}